package ui.teacher_ui;

import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;
import javax.swing.JTextArea;

import ui.component.FontPack;

@SuppressWarnings("serial")
public class HomePanel extends JPanel{
	private JTextArea content;
	public HomePanel(){
		content = new JTextArea();
		this.add(content);
	}
	public JTextArea getContent() {
		return content;
	}
	public void setContent(JTextArea content) {
		this.content = content;
		repaint();
	}
	public void setContentInfo(String s) {
		Font font = FontPack.getHomeFont(30);
		content.setFont(font);
		content.setText(s);
	}
	public void paintComponents(Graphics g){
		super.paintComponents(g);
		add(content);
	}
}
